const Mock = require("mockjs");

module.exports = Mock.mock({
  "list|50": [
    {
      title: "@ctitle",
      url: "@image(120x80, @color)",
      desc: "@cword(20, 30)",
      id: "@id",
    },
  ],
  userList: [
    {
      username: "admin",
      password: "admin",
      "aboutList|5-10": [
        {
          url: "@image(50x50, @color)",
          title: "@ctitle",
          id: "@id",
        },
      ],
    },
    {
      username: "qwe",
      password: "ewq",
      "aboutList|5-10": [
        {
          url: "@image(50x50, @color)",
          title: "@ctitle",
          id: "@id",
        },
      ],
    },
  ],
  "tab|8": [{
    "title": "@ctitle",
    "id": '@id',
    "children|5-10": [{
      url: "@image(120x100, @color)",
      "desc": '@cword(10, 20)',
      "title": '@ctitle',
      "id": '@id'
    }]
  }]
});
